// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.meego 1.0
import "../Script.js" as Script
Page{
    id: pageTemps
    tools: ToolBarLayout {
            id: toolBarLayout
            ToolIcon {
                   platformIconId: "toolbar-back"
                   onClicked: {
                       pageStack.pop();
                   }
               }
        }
    onVisibleChanged:{
         Script.func(list,Info_Trafic,Info_Temps,Info_Size)
     }
    Text{
        id: text_header
        height: 20
        font.pointSize: 10
        verticalAlignment: Text.AlignVCenter
        anchors.left: parent.left
        anchors.leftMargin: 0
        anchors.right: parent.right
        anchors.rightMargin: 0
        text: "Temps entre point | Sûreté de l'information | Distance entre point"
    }

    ListView {
        id: listview1
        anchors.top: text_header.bottom
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        anchors.left: parent.left
        anchors.topMargin: 0
        clip: true
        delegate:Rectangle{
            id: rectangle_content
            height: 80
            anchors.right: parent.right
            anchors.left: parent.left
            color: "transparent"
            Rectangle{
                id: rectangle_title
                height: 30
                anchors.right: parent.right
                anchors.left: parent.left
                color: "gray"
                opacity: 0.6
                Text {
                    id: title
                    text: titre
                    anchors.left: parent.left
                    anchors.bottom: parent.bottom
                    font.pixelSize: 23
                    font.bold: true
                }
            }
            Text {
                id: subTitle
                text: sousTitre
                anchors.left: parent.left
                anchors.top: rectangle_title.bottom
                font.pixelSize: 28
            }
    }
    model: ListModel {
            id: list
        }
    }

}
